﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1,requiresActiveX=true">
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Styles/datetimepicker.css" rel="stylesheet" />
    <link href="~/Styles/app_main.css" rel="stylesheet" media="screen">
    <link href="~/Styles/citizen.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.6.4.min.js"></script>
    @*<script src="~/Scripts/jquery.js"></script>*@

    <script src="~/Scripts/moment.js"></script>
    <script src="~/Scripts/qqhrcitizen.base.js"></script>
    <script src="~/Scripts/citizen.js"></script>
    <style>
        .avatar img {
            width: 48px;
            height: 48px
        }
    </style>
</head>
<body>
    <div id="d_main" class="d-main" style="min-width: 1000px;">
        <div class="Container">
            <!-- region start: top -->
            <div id="d_top" class="d-top">
                <div id="d_top_c" class="d-top-c">
                    <div id="d_topmenu" class="d-topmenu">
                        <div class="d-top-nav">
                            <div class="body">
                                @foreach (var item in ViewBag.Navigation)
                                {
                                    if (@item.Url != "Null")
                                    {
                                        <a id='@item.Nav_Id' class="item" href="@item.Url" target="_parent">@item.Title</a>
                                    }
                                }
                            </div>
                        </div>
                        <div id="d_top_sign" class="d-top-sign">
                            <div class="body">
                                <span class="txt">欢迎来到齐齐哈尔市民学习网</span>
                                @if (!User.Identity.IsAuthenticated)
                                {
                                    <a class="item" href="/User/Login" target="_self">登录</a>
                                    <a class="item last" href="/User/Register" target="_self">注册</a>
                                }
                                else
                                {
                                    if (User.Identity.IsAuthenticated && ViewBag.CurrentUser.RoleAsInt >= 1)
                                    {
                                        <a class="item" href="/Admin/Index" target="_self">管理</a>
                                    }
                                    <a class="item" id="user_name_show" href="/User/Show/@ViewBag.CurrentUser.ID" target="_self">@ViewBag.CurrentUser.Username</a>
                                    <a class="item last" href="/User/Logout?sid=@ViewBag.SID" target="_self">注销</a>
                                }
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- region end: top -->
            <!-- region start: header -->
            <div id="d_header" class="d-header">
                <div id="d_header_c" class="d-header-c">
                    <div id="d_headerdefault" class="d-headerdefault">
                        <a class="d-logo logo-cou" href="/Home/index" target="_parent"><div class="ver">测试版</div></a><div class="d-search">
                            @using (Html.BeginForm("Search", "Home", FormMethod.Post, new { id = "frmSearch" }))
                            {
                                @Html.AntiForgeryToken()
                                <input id="txtSearch" maxlength="30" name="key" onkeydown="if(event.keyCode==13){dosearch();}" type="text" value="" placeholder="课程、新闻、电子书、直播、产品" autocomplete="off" autocorrect="off" autocapitalize="off">
                                <span id="icon-search" class="icon-search" onclick="dosearch();"></span>
                            }
                        </div>
                    </div>
                </div>
            </div>
            <!-- region end: header -->
            @RenderBody()
            <!--region start:footer-->
            <div id="d_footer" class="d-footer footer-cou">
                <div id="d_footer_c" class="d-footer-c">
                    <!-- region start: 页脚 --><div class="l" style="display: block;">
                        Copyright © 2015 齐齐哈尔市广播电视大学. All Rights Reserved. 
                    </div>
                    <div class="clear"></div><!-- region end: 页脚 -->
                </div>
            </div>
            <!-- region end: footer -->
        </div>
    </div>
    <div style="display:none;">
        @*<script src="~/Scripts/h.js" type="text/javascript"></script>*@
    </div>
</body>
</html>